package com.jsnj33.pdaproject.adapter;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jsnj33.pdaproject.R;
import com.jsnj33.pdaproject.bean.RecordBean;

import java.util.List;

/**
 * @ClassName: RecordAdapter
 * @Description: java类作用描述
 * @Author: 萤火虫
 * @Date: 2020/7/3 14:19
 */
public class RecordAdapter extends BaseQuickAdapter<RecordBean, BaseViewHolder> {

    public RecordAdapter(@Nullable List<RecordBean> data) {
        super(R.layout.adapter_record, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, RecordBean item) {
        helper.setText(R.id.tvNum, "序号：" + item.getNum());
        helper.setText(R.id.tvZLD, "制令单号：" + item.getFROM_NO());
        helper.setText(R.id.tvPH, "品号：" + item.getPRD_NO());
        helper.setText(R.id.tvNumber, "数量：" + item.getQTY());
        helper.setText(R.id.tvTime, "时间：" + item.getBILL_DD());
    }
}
